//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package messages;

import common.ByteStream;

public class BuyFromStand extends Base {
    public static final int MsgType = 14110;
    private final int slot;
    private final int id;
    private final int amount;
    private final int price;
    private final int buyUsingCoinsAndGems = 0;

    public BuyFromStand(int slot, int id, int amount, int price) {
        super(14110);
        this.slot = slot;
        this.id = id;
        this.amount = amount;
        this.price = price;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(this.slot);
        stream.writeInt(this.id);
        stream.writeInt(this.amount);
        stream.writeInt(this.price);
        stream.writeByte((byte)0);
    }

    public void decode(ByteStream stream) {
    }

    public String toString() {
        return "Buy From Stand Request: [ Slot:" + this.slot + ", \"" + this.id + "\", Price:" + this.price + ", Amount:" + this.amount + " ]";
    }
}
